import React from 'react'

function Son(props) {
    console.log(props);
    let {arr,parentbtn} = props
    const btn = () => {
      console.log(111);
      parentbtn([6,7,8,9,10])
    //[6,7,8,9,10]
    }
    return (
        <div className='son'>
            Son
            {
                arr.map((item,i)=>(<div key={i}>{item}</div>))
            }
            <button onClick={btn}>点我</button>
        </div>
    )
}

export default Son